from pyspark.context import SparkContext

sc = SparkContext(master="local", appName="word_count")

students_rdd = sc.textFile("../../data/students.txt", minPartitions=3)

sample_rdd = students_rdd.sample(False,0.1)

sample_rdd.foreach(print)